package com.xf.system.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * @author xiefengf
 * @version 1.0
 * @date 2024/2/1 17:00
 */
@Schema(description = "角色信息表")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role")
public class Role extends BaseModel {

    @Schema(description = "角色名称")
    @TableField(value = "role_name")
    private String roleName;

    @Schema(description = "角色权限字符串")
    @TableField(value = "role_key")
    private String roleKey;

    @Schema(description = "显示顺序")
    @TableField(value = "role_sort")
    private Integer roleSort;

    @Schema(description = "角色状态（0正常 1停用）")
    @TableField(value = "status")
    private String status;

}
